<?php
include_once '../../../Core/Controlador.php';
include_once '../../../Core/Conexion.php';
include_once '../../../Core/InterfazDatos.php';
include_once '../../../Entidades/Alumno.php';
include_once '../../../Entidades/Personal.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Eliminar
 *
 * @author home
 */
class Eliminar extends Controlador
{
     function __construct() {
        parent::__construct();
    }
    
    public function ejecutar() 
    {
         $entidad=new Personal($_REQUEST['codigo'],"","","","","","","","","","","","","","");
         $this->conexion->eliminar($entidad);
          header("Location: ../lista.php");
    }   
}

$controlador=new Eliminar();
$controlador->ejecutar();
?>
